import "package:flutter/material.dart";
import 'package:flutter_pink_app/style/text.dart';

// 列表底部loading内容
class ListBottomLoading extends StatelessWidget {
  final bool isOff; // 是否移除树
  final String loadingText; // 加载文案

  const ListBottomLoading(
      {Key key, this.isOff = true, @required this.loadingText})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Offstage(
      offstage: isOff,
      child: Container(
        color: Colors.grey[300],
        alignment: Alignment.center,
        height: 36,
        child: Text(
          loadingText,
          // "~ 正在努力加载中 QAQ ~",
          style: normalGrayStyle,
        ),
      ),
    );
  }
}
